.NET Framework Class Library |
ConcurrentQueue<(Of <(T>)>)..::.TryDequeue Method |
ConcurrentQueue<(Of <(T>)>) Class See Also Send Feedback |
Attempts to remove and return the object at the beginning of the ConcurrentQueue<(Of <(T>)>).
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function TryDequeue ( _ <OutAttribute> ByRef result As T _ ) As Boolean |
C# |
---|
public bool TryDequeue( out T result ) |
Parameters
- result
- Type:
T
%
When this method returns, if the operation was successful, result contains the object removed. If no object was available to be removed, the value is unspecified.